#include <stdio.h>
#define SECURETKEY 5630
#define OFFSET 2209

int Encrypt(int num)
{
  return (num * SECURETKEY) + OFFSET;
}

int Decrypt(int num)
{
  return (num - OFFSET) / SECURETKEY;
}

int main()
{
  int num;
  int secureResult;
  int decryptedResult;

  printf("Enter a number to encrypt: ");
  scanf("%d", &num);

  secureResult = Encrypt(num);
  printf("Encrypted result: %d\n", secureResult);

  decryptedResult = Decrypt(secureResult);
  printf("Decrypted result: %d\n", decryptedResult);

  return 0;
}